package com.ecoolex.ying.space.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.ying.space.entity.PushMessageReadState;
import com.ecoolex.ying.space.entity.PushMessageReadStateExample;
import com.ecoolex.ying.space.entity.PushMessageReadStateKey;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface PushMessageReadStateMapper {
    long countByExample(PushMessageReadStateExample example);

    int deleteByExample(PushMessageReadStateExample example);

    int deleteByPrimaryKey(PushMessageReadStateKey key);

    int insert(PushMessageReadState record);

    int insertSelective(@Param("record") PushMessageReadState record, @Param("selective") PushMessageReadState.Column ... selective);

    PushMessageReadState selectOneByExample(PushMessageReadStateExample example);

    List<PushMessageReadState> selectByExample(PushMessageReadStateExample example);

    PushMessageReadState selectByPrimaryKey(PushMessageReadStateKey key);

    PushMessageReadState selectByPrimaryKeyWithLogicalDelete(@Param("key") PushMessageReadStateKey key, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") PushMessageReadState record, @Param("example") PushMessageReadStateExample example, @Param("selective") PushMessageReadState.Column ... selective);

    int updateByExample(@Param("record") PushMessageReadState record, @Param("example") PushMessageReadStateExample example);

    int updateByPrimaryKeySelective(@Param("record") PushMessageReadState record, @Param("selective") PushMessageReadState.Column ... selective);

    int updateByPrimaryKey(PushMessageReadState record);

    int batchInsert(@Param("list") List<PushMessageReadState> list);

    int batchInsertSelective(@Param("list") List<PushMessageReadState> list, @Param("selective") PushMessageReadState.Column ... selective);

    int logicalDeleteByExample(@Param("example") PushMessageReadStateExample example);

    int logicalDeleteByPrimaryKey(PushMessageReadStateKey key);
}